x=open("file.txt","r")
y=open("lilizong3.txt","w")
y.writelines(x.readlines())
x.close()
y.close()








# x=open("file.txt","r")
# y=open("lilizong.txt","w+")   #这种模式，是删掉原有内容，从头开始写
# y.writelines(x.readlines())
# x.close()
# y.close()


# x=open("file.txt","r")
# y=open("lilizong.txt","r+")       #这种模式，从头开始替换原有内容，
# y.writelines(x.readlines())
# x.close()
# y.close()



# f1 = open('file.txt', 'r')
# f2 = open('result.txt','w')
# f2.writelines(f1.readlines())
# f1.close()
# f2.close()

